﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ACP.DTO;

namespace ACP.Data
{
    public class AcpErrorLog:Repository<acptest_ErrorLog>
    {
        public static void ErrorLog(acptest_ErrorLog _errorLog)
        {
            Repository<acptest_ErrorLog> errorLogRepository = new Repository<acptest_ErrorLog>();
            try
            {
                errorLogRepository.Add(_errorLog);
                errorLogRepository.UnitOfWork.Commit();
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                errorLogRepository.Dispose();
            }
        }
        
    }
}
